package j02jiekou;

interface I1{
    //静态方法
    static void f1(){
        System.out.println("i am f1");
    };
    //默认方法
    default void f2(){
        System.out.println("i am f2");
    }
}

class A implements I1{
    public void f2(){
        System.out.println(2222);
    }
}

public class J1 {
    public static void main(String[] args) {
        I1.f1();

        A a1 = new A();
//        a1.f1();
        a1.f2();
    }
}
